<?php
namespace App\Http\Controllers\ConsoleWeb;

use App\Http\Controllers\WebController;
use App\Http\Controllers\Business\Admin\User\UserMamagement;
use App\Http\Controllers\Business\Admin\Shop\ShopManagement;
use App\Http\Controllers\Business\Admin\Common\Common;
use App\Models\Feedback;
use App\Models\ShopSalesmanDetail;
use App\Models\ShopUser;
use App\Models\User;
use Illuminate\Support\Facades\Cookie;
use Illuminate\Support\Facades\Auth;
use App\Models\Oss;
use Maatwebsite\Excel\Facades\Excel;
use App\Http\Controllers\Business\Admin\Development\FindUsersManagement;

class FindUsersController extends WebController
{
    public function byUserMobileFindUserInfo(){
        if($this->request->has('mobile')) {
            $mobile = $this->request->get('mobile');
        } else {
            $mobile = '';
        }
        $cityId = 1;
        $result = FindUsersManagement::findUserInfoByUserMobile($mobile);
        if($result['status'] == 'failed'){
            return view('errors.404');
        }
        $lists = $result['data'];
        $data = [
            'lists' => $lists,
            'cityid' => $cityId,
            'mobile'=>$mobile,
        ];
        return view('console.development.index', $data);
    }
}